<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>login.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script language="JavaScript">
  	function DoTest(){
		var name,pwd,selection;
		name = document.form1.UserName.value
		pwd = document.form1.UserPwd.value
		if(name=="")
		{
			alert("请输入正确的用户名！");
			document.form1.UserName.focus();
			return false;
		}
		if(name.charAt(0) > '~')
		{
			alert("请将您的“输入法编辑器 (IME)”切换成半角的 ASCII 设置，然后重新输入您的用户名！");
			document.form1.UserName.focus();
			return false;
		}
		if(!pwd)
		{
			alert("请输入您的密码！");
			document.form1.UserPwd.focus();
			return false;
		}	
		return true;	
	}
  </script>
  </head>
  
  <body>
   <center>
	<form name="form1" method="post" onSubmit="DoTest();">
     <table width=250 height=23 border=0 cellpadding=0 cellspacing=0>
	   <tr><td height=200></td></tr>
	   <tr><td width=25%>用户名:</td><td width=80%><input type=text name=UserName value="" onClick="SelText();"></td>
	   </tr><td width=25%>密&nbsp;&nbsp;码:</td><td width=80%><input type=password name=UserPwd value=""></td>
	   <tr>
	     <td width=25%>聊天室:</td>
	     <td width=80%><select name="room" lang="zh"></select></td>
	   </tr>
	   <tr>
	   <td align=center colspan=2 height=60 ><input name="提交" type=submit value="登录"></td>
	   </tr>
      </table>
	 </form> 
    </center>
	<script language="javascript">
	function BodyOnload()
	{
		if(document.form1.UserName)
		{
			document.form1.UserName.focus();
			document.form1.UserName.select();
		}
	}
	function SelText()
	{
		if (document.form1.UserName.value == "<请输入您的用户名>")
		{
			document.form1.UserName.value = "";
		}
	
	}
	BodyOnload();
	
	</script>
  </body>
</html>